package com.neusoft.mapper;

import com.neusoft.domain.Business;
import com.neusoft.domain.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    @Select("select * from employee where account = #{account} and password = #{password} and telephone=#{telephone} and nickname=#{nickname} ")
    Employee loginEmployee(Employee employee);
    @Select("select * from business where account = #{account} and password=#{password} and telephone=#{telephone}")
    Business loginBusiness(Business business);
}
